

<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
  <meta charset="utf-8" />
  
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  
  <title>Ceph 部署 &mdash; Ceph Documentation</title>
  

  
  <link rel="stylesheet" href="../../_static/ceph.css" type="text/css" />
  <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
  <link rel="stylesheet" href="../../_static/graphviz.css" type="text/css" />
  <link rel="stylesheet" href="../../_static/css/custom.css" type="text/css" />

  
  
    <link rel="shortcut icon" href="../../_static/favicon.ico"/>
  

  
  

  

  
  <!--[if lt IE 9]>
    <script src="../../_static/js/html5shiv.min.js"></script>
  <![endif]-->
  
    
      <script type="text/javascript" id="documentation_options" data-url_root="../../" src="../../_static/documentation_options.js"></script>
        <script src="../../_static/jquery.js"></script>
        <script src="../../_static/underscore.js"></script>
        <script src="../../_static/doctools.js"></script>
    
    <script type="text/javascript" src="../../_static/js/theme.js"></script>

    
    <link rel="index" title="Index" href="../../genindex/" />
    <link rel="search" title="Search" href="../../search/" />
    <link rel="next" title="飞前检查" href="preflight-checklist/" />
    <link rel="prev" title="常规配置参考" href="../configuration/general-config-ref/" /> 
</head>

<body class="wy-body-for-nav">

   
  <header class="top-bar">
    

















<div role="navigation" aria-label="breadcrumbs navigation">

  <ul class="wy-breadcrumbs">
    
      <li><a href="../../" class="icon icon-home"></a> &raquo;</li>
        
          <li><a href="../">Ceph 存储集群</a> &raquo;</li>
        
      <li>Ceph 部署</li>
    
    
      <li class="wy-breadcrumbs-aside">
        
          
            <a href="../../_sources/rados/deployment/index.rst.txt" rel="nofollow"> View page source</a>
          
        
      </li>
    
  </ul>

  
  <hr/>
</div>
  </header>
  <div class="wy-grid-for-nav">
    
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search"  style="background: #eee" >
          

          
            <a href="../../">
          

          
            
            <img src="../../_static/logo.png" class="logo" alt="Logo"/>
          
          </a>

          

          
<div role="search">
  <form id="rtd-search-form" class="wy-form" action="../../search/" method="get">
    <input type="text" name="q" placeholder="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>

          
        </div>

        
        <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
          
            
            
              
            
            
              <ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../../start/intro/">Ceph 简介</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../install/">安装 Ceph</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../cephadm/">Cephadm</a></li>
<li class="toctree-l1 current"><a class="reference internal" href="../">Ceph 存储集群</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="../configuration/">配置</a></li>
<li class="toctree-l2 current"><a class="current reference internal" href="#">部署</a><ul>
<li class="toctree-l3"><a class="reference internal" href="preflight-checklist/">飞前检查</a></li>
<li class="toctree-l3"><a class="reference internal" href="ceph-deploy-install/">安装 Ceph</a></li>
<li class="toctree-l3"><a class="reference internal" href="ceph-deploy-new/">创建集群</a></li>
<li class="toctree-l3"><a class="reference internal" href="ceph-deploy-mon/">增加/删除监视器</a></li>
<li class="toctree-l3"><a class="reference internal" href="ceph-deploy-keys/">密钥管理</a></li>
<li class="toctree-l3"><a class="reference internal" href="ceph-deploy-osd/">增加/删除 OSD</a></li>
<li class="toctree-l3"><a class="reference internal" href="ceph-deploy-mds/">增加/删除 MDS</a></li>
<li class="toctree-l3"><a class="reference internal" href="ceph-deploy-purge/">删减主机</a></li>
<li class="toctree-l3"><a class="reference internal" href="ceph-deploy-admin/">管理任务</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../operations/">运维</a></li>
<li class="toctree-l2"><a class="reference internal" href="../man/">手册页</a></li>
<li class="toctree-l2"><a class="reference internal" href="../troubleshooting/">故障排除</a></li>
<li class="toctree-l2"><a class="reference internal" href="../api/">APIs</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../cephfs/">Ceph 文件系统</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../rbd/">Ceph 块设备</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../radosgw/">Ceph 对象网关</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../mgr/">Ceph 管理器守护进程</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../mgr/dashboard/">Ceph 仪表盘</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../api/">API 文档</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../architecture/">体系结构</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../dev/developer_guide/">开发者指南</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../dev/internals/">Ceph 内幕</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../governance/">项目管理</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../foundation/">Ceph 基金会</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../ceph-volume/">ceph-volume</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../releases/general/">Ceph 版本（总目录）</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../releases/">Ceph 版本（索引）</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../glossary/">Ceph 术语</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../translation_cn/">中文版翻译资源</a></li>
</ul>

            
          
        </div>
        
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">

      
      <nav class="wy-nav-top" aria-label="top navigation">
        
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="../../">Ceph</a>
        
      </nav>


      <div class="wy-nav-content">
        
        <div class="rst-content">
        
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
            
<div id="dev-warning" class="admonition note">
  <p class="first admonition-title">Notice</p>
  <p class="last">This document is for a development version of Ceph.</p>
</div>
  <div id="docubetter" align="right" style="padding: 5px; font-weight: bold;">
    <a href="https://pad.ceph.com/p/Report_Documentation_Bugs">Report a Documentation Bug</a>
  </div>

  
  <div class="section" id="ceph">
<span id="ceph-deployment"></span><h1>Ceph 部署<a class="headerlink" href="#ceph" title="Permalink to this headline">¶</a></h1>
<p><code class="docutils literal notranslate"><span class="pre">ceph-deploy</span></code> 工具是一种部署 Ceph 的方法，它只依赖到服务器的
SSH 访问、 <code class="docutils literal notranslate"><span class="pre">sudo</span></code> 和 Python 。它可在你的工作站上运行，不需要服务器、数据库、或其它工具。如果你安装、拆卸过很多 Ceph 集群，不想要额外的工具，那 <code class="docutils literal notranslate"><span class="pre">ceph-deploy</span></code> 是理想之选。它不是个通用部署系统，只为 Ceph 用户设计，用它可以快速地设置并运行一个默认值较合理的集群，而无需头疼 <a class="reference external" href="http://tracker.ceph.com/projects/ceph/wiki/Deploying_Ceph_with_Chef">Chef</a> 、 Puppet 或 Juju 的安装。如果您想全面控制安全设置、分区、或目录位置，可以试试类似
Juju 、 Chef 、 Crowbar 的工具。</p>
<p>用 <code class="docutils literal notranslate"><span class="pre">ceph-deploy</span></code> 你可以自己开发脚本往远程主机上安装 Ceph 软件包、创建集群、增加监视器、收集（或销毁）密钥、增加 OSD 和元数据服务器、配置管理主机，甚至拆除集群。</p>
<table cellpadding="10"><tbody valign="top"><tr><td><div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="preflight-checklist/">飞前检查</a><ul>
<li class="toctree-l2"><a class="reference internal" href="preflight-checklist/#id2">选装一个操作系统</a></li>
<li class="toctree-l2"><a class="reference internal" href="preflight-checklist/#ssh">安装 SSH 服务器</a></li>
<li class="toctree-l2"><a class="reference internal" href="preflight-checklist/#id3">创建一用户</a></li>
<li class="toctree-l2"><a class="reference internal" href="preflight-checklist/#id4">配置 SSH</a></li>
<li class="toctree-l2"><a class="reference internal" href="preflight-checklist/#ceph-deploy">安装 ceph-deploy</a></li>
<li class="toctree-l2"><a class="reference internal" href="preflight-checklist/#id5">确认连通性</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="ceph-deploy-install/">安装 Ceph</a><ul>
<li class="toctree-l2"><a class="reference internal" href="ceph-deploy-install/#id2">安装</a></li>
<li class="toctree-l2"><a class="reference internal" href="ceph-deploy-install/#id3">卸载</a></li>
</ul>
</li>
</ul>
</div>
</td><td><div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="ceph-deploy-new/">创建集群</a><ul>
<li class="toctree-l2"><a class="reference internal" href="ceph-deploy-new/#id2">用法</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="ceph-deploy-mon/">增加/删除监视器</a><ul>
<li class="toctree-l2"><a class="reference internal" href="ceph-deploy-mon/#id2">增加一监视器</a></li>
<li class="toctree-l2"><a class="reference internal" href="ceph-deploy-mon/#id3">删除一监视器</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="ceph-deploy-keys/">密钥管理</a><ul>
<li class="toctree-l2"><a class="reference internal" href="ceph-deploy-keys/#id2">收集密钥</a></li>
<li class="toctree-l2"><a class="reference internal" href="ceph-deploy-keys/#id3">销毁密钥</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="ceph-deploy-osd/">增加/删除 OSD</a><ul>
<li class="toctree-l2"><a class="reference internal" href="ceph-deploy-osd/#id1">罗列磁盘</a></li>
<li class="toctree-l2"><a class="reference internal" href="ceph-deploy-osd/#id2">擦净磁盘</a></li>
<li class="toctree-l2"><a class="reference internal" href="ceph-deploy-osd/#id3">创建 OSD</a></li>
<li class="toctree-l2"><a class="reference internal" href="ceph-deploy-osd/#id4">罗列 OSD</a></li>
<li class="toctree-l2"><a class="reference internal" href="ceph-deploy-osd/#id5">拆除 OSD</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="ceph-deploy-mds/">增加/删除 MDS</a><ul>
<li class="toctree-l2"><a class="reference internal" href="ceph-deploy-mds/#id2">增加一元数据服务器</a></li>
<li class="toctree-l2"><a class="reference internal" href="ceph-deploy-mds/#id3">拆除一元数据服务器</a></li>
</ul>
</li>
</ul>
</div>
</td><td><div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="ceph-deploy-purge/">删减主机</a><ul>
<li class="toctree-l2"><a class="reference internal" href="ceph-deploy-purge/#purgedata">purgedata</a></li>
<li class="toctree-l2"><a class="reference internal" href="ceph-deploy-purge/#purge">purge</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="ceph-deploy-admin/">管理任务</a><ul>
<li class="toctree-l2"><a class="reference internal" href="ceph-deploy-admin/#id2">创建一管理主机</a></li>
<li class="toctree-l2"><a class="reference internal" href="ceph-deploy-admin/#id3">分发配置文件</a></li>
<li class="toctree-l2"><a class="reference internal" href="ceph-deploy-admin/#id4">检索配置文件</a></li>
</ul>
</li>
</ul>
</div>
</td></tr></tbody></table></div>



           </div>
           
          </div>
          <footer>
    <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
        <a href="preflight-checklist/" class="btn btn-neutral float-right" title="飞前检查" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
        <a href="../configuration/general-config-ref/" class="btn btn-neutral float-left" title="常规配置参考" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
    </div>

  <hr/>

  <div role="contentinfo">
    <p>
        &#169; Copyright 2016, Ceph authors and contributors. Licensed under Creative Commons Attribution Share Alike 3.0 (CC-BY-SA-3.0).

    </p>
  </div> 

</footer>
        </div>
      </div>

    </section>

  </div>
  

  <script type="text/javascript">
      jQuery(function () {
          SphinxRtdTheme.Navigation.enable(true);
      });
  </script>

  
  
    
   

</body>
</html>